package top.lywivan.heap;

/**
 * @author :lyw.ivan
 * @date :Created in 2022/7/9
 * @description :
 * @version: 1.0
 */
public class BigTopHeapTest {
    public static void main(String[] args) {
        BigTopHeap heap=new BigTopHeap();
        heap.insert(5);
        System.out.println(heap.getMax());
        System.out.println(heap.removeMax());
        System.out.println("----------------");
        heap.insert(5);
        heap.insert(8);
        heap.insert(7);
        heap.insert(13);
        System.out.println(heap.getMax());
        System.out.println(heap.removeMax());
        System.out.println(heap.getMax());
        System.out.println(heap.removeMax());
        System.out.println(heap.getMax());
        System.out.println(heap.removeMax());
        System.out.println(heap.getMax());
        System.out.println(heap.removeMax());
        System.out.println(heap.getMax());
        System.out.println(heap.removeMax());
        System.out.println(heap.getMax());
        System.out.println(heap.removeMax());
    }
}
